package com.sketch.controller;

import com.sketch.commom.PageResult;
import com.sketch.commom.Result;
import com.sketch.entity.dto.WebUserDTO;
import com.sketch.service.WebUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(tags = "用户行为")
@RequestMapping(value = "/api/user")
public class WebUserController {
    @Resource
    private WebUserService webUserService;
//    /**
//     * 获取用户列表
//     */
//    @GetMapping("/list")
//    @ApiOperation("获取用户列表")
//    public Result<PageResult<WebUserDTO>> list(@ApiParam(value = "用户ID") @RequestParam(required = false) Long uid,
//                                               @ApiParam(value = "1.vip 2.非vip") @RequestParam(required = false) Integer vip,
//                                               @ApiParam(value = "用户状态 0正常 1冻结") @RequestParam(required = false) Integer status,
//                                               @RequestParam(value = "page", defaultValue = "1", required = false) Integer page,
//                                               @RequestParam(value = "size", defaultValue = "20", required = false) Integer size) {
//        return webUserService.list(uid,vip,status,page,size);
//    }


}
